package com.emptyMe.org.service;

import com.emptyMe.org.domain.Department;
import com.emptyMe.org.query.DepartmentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {
    void save(Department d);

    void remove(Long id);

    void removeMany(List<Department> list);

    void update(Department d);

    Department getById(Long id);

    List<Department> getAll();

    /**
     * 分页查询
     *
     */
    // 查询总条数
    Long queryCount(DepartmentQuery query);
    // 查询当前页数
    PageInfo<Department> queryData(DepartmentQuery query);
    // 模糊查询
    PageInfo<Department> searchData(DepartmentQuery query);
}
